import {createRouter, createWebHistory, createWebHashHistory} from 'vue-router'
// there is also createWebHashHistory and createMemoryHistory
import Home from '../components/home/Home.vue'
import Cards from '../components/Cards.vue'

const router = createRouter({
  history: createWebHistory() || createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
    },
    {
      path: '/cards',
      name: 'cards',
      component: Cards,
    },
  ],
})

export default router
